package com.example.chartroom.model;

import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface FriendMapper {
    List<Friend> selectFriendList(int userId);
    ////找出friendName的用户信息,抛出selfUserId和本身和其他好友
    List<Friend> findFriend(int selfUserId,String friendName);

    void addFriendRequest(int fromUserId, int toUserId, String reason);

    List<AddFriendRequest> getFriendRequest(int userId);

    void deleteFriendRequest(int fromUserId, int toUserId);

    void addFriend(int userId,int friendId);
}
